<?php
$title = 'Tickets';
$this->headTitle($title);
?>
<h1><?php echo $this->escapeHtml($title); ?></h1>
<p>
    <a href="<?php echo $this->url('ticket', array('action'=>'add'));?>">Add a new ticket</a>
</p>

<table class="table">
<tr>
    <th>tytuł</th>
    <th>kategoria</th>
    <th>&nbsp;</th>
</tr>
<?php foreach ($tickets as $ticket) : ?>
<tr>
    <td>
        <?php echo $this->escapeHtml($ticket->getTitle());?>
    </td>
    <td>
        <?php echo $this->escapeHtml($ticket->getCategory());?>
    </td>
    <td>
        <a href="<?php echo $this->url('ticket', array('action'=>'view', 'id' => $ticket->getId()));?>">View</a>
        <a href="<?php echo $this->url('ticket', array('action'=>'edit', 'id' => $ticket->getId()));?>">Edit</a>
        <a href="<?php echo $this->url('ticket', array('action'=>'delete', 'id' => $ticket->getId()));?>">Delete</a>
    </td>
</tr>
<?php endforeach; ?>
</table>